import { session } from "@/utils/utils";

export default [
    {
        path: "pay",
        name: "AdminPay",
        component: () => import("@/views/zhifu/zhifu.vue"),
        meta: { authLogin: true },
    },

    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list.vue"),
        meta: { title: "管理员列表", authLogin: true },
    },

    {
        path: "admins/add",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add.vue"),
        meta: { title: "添加管理员", authLogin: true },
    },
    {
        path: "admins/updt",
        name: "AdminadminsUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt.vue"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "admins/updtself",
        name: "AdminadminsUpdtSelf",
        props: (route) => ({ id: session("id") }),
        component: () => import("@/views/admins/updtself.vue"),
        meta: { title: "更新个人资料", authLogin: true },
    },
    {
        path: "yonghu",
        name: "AdminyonghuList",
        component: () => import("@/views/yonghu/list.vue"),
        meta: { title: "用户列表", authLogin: true },
    },

    {
        path: "yonghu/add",
        name: "AdminyonghuAdd",
        component: () => import("@/views/yonghu/add.vue"),
        meta: { title: "添加用户", authLogin: true },
    },
    {
        path: "yonghu/updt",
        name: "AdminyonghuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/yonghu/updt.vue"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghu/updtself",
        name: "AdminyonghuUpdtSelf",
        props: (route) => ({ id: session("id") }),
        component: () => import("@/views/yonghu/updtself.vue"),
        meta: { title: "更新个人资料", authLogin: true },
    },
    {
        path: "yonghu/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminyonghuDetail",
        component: () => import("@/views/yonghu/detail.vue"),
        meta: { title: "用户详情", authLogin: true },
    },
    {
        path: "lunbotu",
        name: "AdminlunbotuList",
        component: () => import("@/views/lunbotu/list.vue"),
        meta: { title: "轮播图列表", authLogin: true },
    },

    {
        path: "lunbotu/add",
        name: "AdminlunbotuAdd",
        component: () => import("@/views/lunbotu/add.vue"),
        meta: { title: "添加轮播图", authLogin: true },
    },
    {
        path: "lunbotu/updt",
        name: "AdminlunbotuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/lunbotu/updt.vue"),
        meta: { title: "编辑轮播图", authLogin: true },
    },
    {
        path: "shangpinfenlei",
        name: "AdminshangpinfenleiList",
        component: () => import("@/views/shangpinfenlei/list.vue"),
        meta: { title: "商品分类列表", authLogin: true },
    },

    {
        path: "shangpinfenlei/add",
        name: "AdminshangpinfenleiAdd",
        component: () => import("@/views/shangpinfenlei/add.vue"),
        meta: { title: "添加商品分类", authLogin: true },
    },
    {
        path: "shangpinfenlei/updt",
        name: "AdminshangpinfenleiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpinfenlei/updt.vue"),
        meta: { title: "编辑商品分类", authLogin: true },
    },
    {
        path: "shangpinxinxi",
        name: "AdminshangpinxinxiList",
        component: () => import("@/views/shangpinxinxi/list.vue"),
        meta: { title: "商品信息列表", authLogin: true },
    },

    {
        path: "shangpinxinxi/faburen",
        name: "AdminshangpinxinxiListfaburen",
        component: () => import("@/views/shangpinxinxi/faburen.vue"),
        meta: { title: "商品信息列表", authLogin: true },
    },

    {
        path: "shangpinxinxi/add",
        name: "AdminshangpinxinxiAdd",
        component: () => import("@/views/shangpinxinxi/add.vue"),
        meta: { title: "添加商品信息", authLogin: true },
    },
    {
        path: "shangpinxinxi/updt",
        name: "AdminshangpinxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpinxinxi/updt.vue"),
        meta: { title: "编辑商品信息", authLogin: true },
    },
    {
        path: "shangpinxinxi/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminshangpinxinxiDetail",
        component: () => import("@/views/shangpinxinxi/detail.vue"),
        meta: { title: "商品信息详情", authLogin: true },
    },
    {
        path: "gouwuche",
        name: "AdmingouwucheList",
        component: () => import("@/views/gouwuche/list.vue"),
        meta: { title: "购物车列表", authLogin: true },
    },

    {
        path: "gouwuche/faburen",
        name: "AdmingouwucheListfaburen",
        component: () => import("@/views/gouwuche/faburen.vue"),
        meta: { title: "购物车列表", authLogin: true },
    },
    {
        path: "gouwuche/goumairen",
        name: "AdmingouwucheListgoumairen",
        component: () => import("@/views/gouwuche/goumairen.vue"),
        meta: { title: "购物车列表", authLogin: true },
    },

    {
        path: "gouwuche/add",
        name: "AdmingouwucheAdd",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/gouwuche/add.vue"),
        meta: { title: "添加购物车", authLogin: true },
    },
    {
        path: "gouwuche/updt",
        name: "AdmingouwucheUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/gouwuche/updt.vue"),
        meta: { title: "编辑购物车", authLogin: true },
    },
    {
        path: "gouwuche/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmingouwucheDetail",
        component: () => import("@/views/gouwuche/detail.vue"),
        meta: { title: "购物车详情", authLogin: true },
    },
    {
        path: "shangpindingdan",
        name: "AdminshangpindingdanList",
        component: () => import("@/views/shangpindingdan/list.vue"),
        meta: { title: "商品订单列表", authLogin: true },
    },

    {
        path: "shangpindingdan/shangjia",
        name: "AdminshangpindingdanListshangjia",
        component: () => import("@/views/shangpindingdan/shangjia.vue"),
        meta: { title: "商品订单列表", authLogin: true },
    },
    {
        path: "shangpindingdan/goumairen",
        name: "AdminshangpindingdanListgoumairen",
        component: () => import("@/views/shangpindingdan/goumairen.vue"),
        meta: { title: "商品订单列表", authLogin: true },
    },

    {
        path: "shangpindingdan/add",
        name: "AdminshangpindingdanAdd",
        component: () => import("@/views/shangpindingdan/add.vue"),
        meta: { title: "添加商品订单", authLogin: true },
    },
    {
        path: "shangpindingdan/updt",
        name: "AdminshangpindingdanUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpindingdan/updt.vue"),
        meta: { title: "编辑商品订单", authLogin: true },
    },
    {
        path: "shangpindingdan/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminshangpindingdanDetail",
        component: () => import("@/views/shangpindingdan/detail.vue"),
        meta: { title: "商品订单详情", authLogin: true },
    },

    {
        path: "dingdanjiaoyi",
        name: "AdmindingdanjiaoyiList",
        component: () => import("@/views/dingdanjiaoyi/list.vue"),
        meta: { title: "订单交易列表", authLogin: true },
    },

    {
        path: "dingdanjiaoyi/shangjia",
        name: "AdmindingdanjiaoyiListshangjia",
        component: () => import("@/views/dingdanjiaoyi/shangjia.vue"),
        meta: { title: "订单交易列表", authLogin: true },
    },
    {
        path: "dingdanjiaoyi/goumairen",
        name: "AdmindingdanjiaoyiListgoumairen",
        component: () => import("@/views/dingdanjiaoyi/goumairen.vue"),
        meta: { title: "订单交易列表", authLogin: true },
    },

    {
        path: "dingdanjiaoyi/add",
        name: "AdmindingdanjiaoyiAdd",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanjiaoyi/add.vue"),
        meta: { title: "添加订单交易", authLogin: true },
    },
    {
        path: "dingdanjiaoyi/updt",
        name: "AdmindingdanjiaoyiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanjiaoyi/updt.vue"),
        meta: { title: "编辑订单交易", authLogin: true },
    },
    {
        path: "dingdanjiaoyi/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindingdanjiaoyiDetail",
        component: () => import("@/views/dingdanjiaoyi/detail.vue"),
        meta: { title: "订单交易详情", authLogin: true },
    },

    {
        path: "dingdanwancheng",
        name: "AdmindingdanwanchengList",
        component: () => import("@/views/dingdanwancheng/list.vue"),
        meta: { title: "订单完成列表", authLogin: true },
    },

    {
        path: "dingdanwancheng/shangjia",
        name: "AdmindingdanwanchengListshangjia",
        component: () => import("@/views/dingdanwancheng/shangjia.vue"),
        meta: { title: "订单完成列表", authLogin: true },
    },
    {
        path: "dingdanwancheng/goumairen",
        name: "AdmindingdanwanchengListgoumairen",
        component: () => import("@/views/dingdanwancheng/goumairen.vue"),
        meta: { title: "订单完成列表", authLogin: true },
    },

    {
        path: "dingdanwancheng/add",
        name: "AdmindingdanwanchengAdd",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanwancheng/add.vue"),
        meta: { title: "添加订单完成", authLogin: true },
    },
    {
        path: "dingdanwancheng/updt",
        name: "AdmindingdanwanchengUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanwancheng/updt.vue"),
        meta: { title: "编辑订单完成", authLogin: true },
    },
    {
        path: "dingdanwancheng/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindingdanwanchengDetail",
        component: () => import("@/views/dingdanwancheng/detail.vue"),
        meta: { title: "订单完成详情", authLogin: true },
    },

    {
        path: "shangpinshenhe",
        name: "AdminshangpinshenheList",
        component: () => import("@/views/shangpinshenhe/list.vue"),
        meta: { title: "商品审核列表", authLogin: true },
    },

    {
        path: "shangpinshenhe/faburen",
        name: "AdminshangpinshenheListfaburen",
        component: () => import("@/views/shangpinshenhe/faburen.vue"),
        meta: { title: "商品审核列表", authLogin: true },
    },

    {
        path: "shangpinshenhe/add",
        name: "AdminshangpinshenheAdd",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpinshenhe/add.vue"),
        meta: { title: "添加商品审核", authLogin: true },
    },
    {
        path: "shangpinshenhe/updt",
        name: "AdminshangpinshenheUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpinshenhe/updt.vue"),
        meta: { title: "编辑商品审核", authLogin: true },
    },
    {
        path: "shangpinshenhe/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminshangpinshenheDetail",
        component: () => import("@/views/shangpinshenhe/detail.vue"),
        meta: { title: "商品审核详情", authLogin: true },
    },
    {
        path: "shoucang",
        name: "AdminshoucangList",
        component: () => import("@/views/shoucang/list.vue"),
        meta: { title: "收藏列表", authLogin: true },
    },

    {
        path: "shoucang/username",
        name: "AdminshoucangListusername",
        component: () => import("@/views/shoucang/username.vue"),
        meta: { title: "收藏列表", authLogin: true },
    },

    {
        path: "liuyanban",
        name: "AdminliuyanbanList",
        component: () => import("@/views/liuyanban/list.vue"),
        meta: { title: "留言板列表", authLogin: true },
    },

    {
        path: "liuyanban/liuyanren",
        name: "AdminliuyanbanListliuyanren",
        component: () => import("@/views/liuyanban/liuyanren.vue"),
        meta: { title: "留言板列表", authLogin: true },
    },

    {
        path: "liuyanban/add",
        name: "AdminliuyanbanAdd",
        component: () => import("@/views/liuyanban/add.vue"),
        meta: { title: "添加留言板", authLogin: true },
    },
    {
        path: "liuyanban/updt",
        name: "AdminliuyanbanUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/liuyanban/updt.vue"),
        meta: { title: "编辑留言板", authLogin: true },
    },
    {
        path: "liuyanban/detail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminliuyanbanDetail",
        component: () => import("@/views/liuyanban/detail.vue"),
        meta: { title: "留言板详情", authLogin: true },
    },
    {
        path: "siliao",
        name: "AdminsiliaoList",
        component: () => import("@/views/siliao/list.vue"),
        meta: { title: "私聊列表", authLogin: true },
    },

    {
        path: "siliao/shouxinren",
        name: "AdminsiliaoListshouxinren",
        component: () => import("@/views/siliao/shouxinren.vue"),
        meta: { title: "私聊列表", authLogin: true },
    },
    {
        path: "siliao/faxinren",
        name: "AdminsiliaoListfaxinren",
        component: () => import("@/views/siliao/faxinren.vue"),
        meta: { title: "私聊列表", authLogin: true },
    },

    {
        path: "siliao/add",
        name: "AdminsiliaoAdd",
        component: () => import("@/views/siliao/add.vue"),
        meta: { title: "添加私聊", authLogin: true },
    },
    {
        path: "siliao/updt",
        name: "AdminsiliaoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/siliao/updt.vue"),
        meta: { title: "编辑私聊", authLogin: true },
    },
    {
        path: "xiaoxi",
        name: "AdminxiaoxiList",
        component: () => import("@/views/xiaoxi/list.vue"),
        meta: { title: "消息列表", authLogin: true },
    },

    {
        path: "xiaoxi/fasongren",
        name: "AdminxiaoxiListfasongren",
        component: () => import("@/views/xiaoxi/fasongren.vue"),
        meta: { title: "消息列表", authLogin: true },
    },

    {
        path: "xiaoxi/add",
        name: "AdminxiaoxiAdd",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xiaoxi/add.vue"),
        meta: { title: "添加消息", authLogin: true },
    },
    {
        path: "xiaoxi/updt",
        name: "AdminxiaoxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xiaoxi/updt.vue"),
        meta: { title: "编辑消息", authLogin: true },
    },
];
